<?php 
 
namespace app\common\model;

use app\common\model\BaseModel;
use app\common\traits\ModelTrait;
use app\common\utils\JsonService;
/**
* This is the model class for table "{ptf_spec_goods_price}".
*
* @property int $item_id 规格商品id
* @property int $goods_id 商品id 
* @property string $key 规格键名
* @property string $key_name 规格键名中文
* @property int $price 价格 
* @property int $store_count 库存数量 
* @property string $bar_code 商品条形码
* @property string $sku SKU
* @property string $spec_img 规格商品主图
* @property int $prom_id 活动id 
* @property int $prom_type 参加活动类型 
*/
class SpecGoodsPrice extends BaseModel{

    protected $pk = 'item_id';
    protected $name = 'spec_goods_price';

    use ModelTrait;
    protected $autoWriteTimestamp = true;
    //protected $dateFormat = 'Y-m-d';
    //protected $createTime = 'create_time';
    //protected $updateTime = 'update_time';

    /**
    * {@inheritdoc}
    */
    public function attributeLabels()
    {
        return [
            'item_id' => '规格商品id',
            'goods_id' => '商品id',
            'key' => '规格键名',
            'key_name' => '规格键名中文',
            'price' => '价格',
            'store_count' => '库存数量',
            'bar_code' => '商品条形码',
            'sku' => 'SKU',
            'spec_img' => '规格商品主图',
            'prom_id' => '活动id',
            'prom_type' => '参加活动类型',
        ];
    }

}


?>